package com.kate.mall.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 类目表
 * 
 * @author kate-chan
 * @email 857782993@qq.com
 * @date 2022-12-06 23:21:04
 */
@Data
@TableName("pms_category")
public class CategoryEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@ApiModelProperty(value = "")
	@TableId
	private Integer id;
	/**
	 * 类目名称
	 */
	@ApiModelProperty(value = "类目名称")
	private String name;
	/**
	 * 类目关键字，以JSON数组格式
	 */
	@ApiModelProperty(value = "类目关键字，以JSON数组格式")
	private String keywords;
	/**
	 * 类目广告语介绍
	 */
	@ApiModelProperty(value = "类目广告语介绍")
	@TableField("`desc`")
	private String desc;
	/**
	 * 父类目ID
	 */
	@ApiModelProperty(value = "父类目ID")
	private Integer pid;
	/**
	 * 类目图标
	 */
	@ApiModelProperty(value = "类目图标")
	private String iconUrl;
	/**
	 * 类目图片
	 */
	@ApiModelProperty(value = "类目图片")
	private String picUrl;
	/**
	 * 
	 */
	@ApiModelProperty(value = "")
	private String level;
	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	private Integer sortOrder;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date addTime;
	/**
	 * 更新时间
	 */
	@ApiModelProperty(value = "更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date updateTime;
	/**
	 * 逻辑删除
	 */
	@ApiModelProperty(value = "逻辑删除")
	private Boolean deleted;

}
